package com.hxht.cmp.mapper;

import com.hxht.cmp.entity.User;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;
import tk.mybatis.mapper.common.Mapper;

import java.util.List;
import java.util.Map;

@Repository
public interface UserMapper extends Mapper<User> {

    List<Map<String, Object>> selectSecretaryByCourtUid(@Param("courtUid") String courtUid, @Param("userUid") String userUid);

    List<Map<String, Object>> selectJudgeByCourtUid(@Param("courtUid") String courtUid, @Param("userUid") String userUid);

    List<Map<String, Object>> selectAllDeptAndPostInfo(@Param("courtUid") String courtUid);

    List<Map<String, Object>> selectGroupUser(@Param("userId") long userId);
}